<?php
	require "settings/config.php";
	require "layout.php";
	require "includes/session.php";
	require "includes/sql_functions.php";
	require "includes/slot_functions.php";
	require "includes/game_functions.php";
	require "includes/scen_functions.php";
	require "includes/misc_functions.php";
	
	oh_require_admin();
	
	render_header("Add game");

	echo "<b>Add a game to slot ".$_GET['slot'].":</b><br />\n";
	
	echo "<form action=\"do_gameadd.php\" method=\"POST\">\n";
	
	echo "<input type=\"hidden\" name=\"slot\" value=\"".$_GET['slot']."\">\n";
	
	echo "<br \>\n";
	echo "Scenario: ";
	oh_render_scen_dropdown();
?>
	<br \><br \>
<?php
	echo "Location: ";
	oh_render_location_dropdown();
?>
	<br \><br \>
	Number of tables: <input type="text" name="numtables" size="3" class="inputbox">
	<br \><br \>
	Players per table: <input type="text" name="tablesize" size="3" class="inputbox">
	<br \><br \>
	Extra GMs <span class="smalltext">(above 1 per table)</span>: <input type="text" name="extragms" size="3" class="inputbox">
	<br \><br \>
	<input type="submit" class="button" value="Add Game">
	</form>
	<span class="smalltext">Note: To create a multi-session game first add the game, then use the game editor to add extra sessions.</span>
<?php
	render_footer();
?>